<!--
 * @Description: 
 * @Version: 2.0
 * @Author: zhy
 * @Date: 2024-12-31 10:32:31
 * @LastEditors: zhy
 * @LastEditTime: 2025-01-21 16:49:33
-->

<template>
  <div class="ag-app">
      <ag-tool :data="data.tools"></ag-tool>
      <ag-viewer></ag-viewer>
  </div>
</template>

<script setup>
import AgViewer from "./components/AgViewer/index.vue";
import AgTool from './components/AgTool/index.vue'

import * as Data from "@/assets/data/data.js";
import { ref, reactive, onMounted } from 'vue'

const data = reactive({
  tableData: Data.getTableData(),
  flyghtRouteData: {
  },
  tools: getMenus(),
})
onMounted(()=>{
  viewer.camera.flyTo({
      destination: new Barium.Cartesian3(-2322502.993039837, 5392454.157114137,2487557.489359075),
      orientation: { heading:1.3351019646168805, pitch: -0.4022734809493995, roll:  0.00008373474923040192 }
  })
})
</script>

<style scoped>
.ag-app {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
}
</style>
